const config = {
  id: 'innovation',
  title: '协同创新指标',
  icon: require('../images/innovation.png'),
  dataType: 'json', //是否从json拉取数据绘制图层 原yearbook分类   //若不需要拉取数据 为service
  displayType: 'featureLayer', //migrateEchartLayer featureLayer
  // 若需通过json生成图层
  uniqueKey: 'regionName',
  fieldJsonArray: [
    { name: 'OBJECTID', alias: 'ObjectID', type: 'oid' },
    { name: 'regionName', alias: 'regionName', type: 'string' },
    { name: 'innoVal', alias: 'innoVal', type: 'double' }
  ],
  // 场景参数
  initCamera: {
    heading: 5.476,
    tilt: 41.836,
    fov: 55,
    position: {
      latitude: 21.8845,
      longitude: 118.332,
      z: 1002854.72,
    },
  },
  //底图
  basemapTitle: '深色底图',
  // 右侧面板显示参数
  hasTable: false,
  hasChart: false,
  hasDataInfo: false,
  // 年鉴数据为false 港口等需要通过数据库数据生成点时为true
  hasGeometryData: false,
  //是否打开图例
  hasLegend: true,
  // service图层
  // serviceLayer: ['TRAFFIC_PORT'],
  serviceLayer: [],
  definitionExpression: "",
  //数据级别
  selectedDataLevel: '', //630100
  // 是否有时间轴  时间轴是否显示由timeSeries 决定
  hasTimeLine: false,
  unit: '',
  initTime: '',
  timeSeries: [],
  hoverEnabled: false,
  geometryType: 'point',
  rendererJson: {
    type: 'classBreaks',
    visualVariables: [
      {
        type: 'colorInfo',
        field: 'innoVal',
        stops: [
          { value: 0, color: [255, 255, 0, 255], label: '0' },
          { value: 100, color: [255, 0, 0, 255], label: '100' },
        ],
        legendOptions: { title: '协同创新指标' },
      },
      {
        type: 'sizeInfo',
        axis: 'height',
        field: 'innoVal',
        minSize: 10000,
        maxSize: 100000,
        minDataValue: 0,
        maxDataValue: 100,
        legendOptions: { title: '协同创新指标' },
      },
      { type: 'sizeInfo', axis: 'widthAndDepth', minSize: 6678 },
    ],
    classBreakInfos: [
      {
        classMaxValue: 1.79e308,
        symbol: {
          type: 'PointSymbol3D',
          symbolLayers: [
            {
              material: { color: [227, 139, 79] },
              type: 'Object',
              resource: { primitive: 'cylinder' },
              width: 5000,
              height: 10000,
              depth: 5000,
            },
          ],
        },
      },
    ],
    minValue: -1.79e308,
    field: 'innoVal',
  },
  labelingInfo:
  {
    labelExpressionInfo: { expression: '$feature["regionName"]' },
    labelPlacement: 'esriServerPointLabelPlacementAboveCenter',
    symbol: {
      type: 'LabelSymbol3D',
      symbolLayers: [
        {
          material: { color: [255, 255, 255] },
          type: 'Text',
          halo: { color: [0, 0, 0], transparency: 50, size: 1 },
          size: 11
        }
      ]
    },
    useCodedValues: true
  }
};
export default config;
